package hy;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MyCtrl {
    @Autowired
    Environment env;


    @RequestMapping("/demo1/hello")
    public String m1(){
        System.out.println(env.getProperty("person.birth"));
        System.out.println();
        return env.getProperty("dog.name");
    }
}
